/**
 * 一级分类接口
 */

import request from "@/utils/request";


// 删除一级分类
export const deleteFirstCategory = (fId) => {
  return request({
    method: "DELETE",
    url: `/firstCategory/${fId}`
  })
}


// 分页查询一级分类。实现了搜索功能
export const pagingQuery = (params) => {
  return request({
    method: "GET",
    url: "/firstCategory/pagingQuery",
    params
  })
}